<div class="row RowSpace LastRow">
  <DataGrid module="Module.MO" isedit="false" ExcelName="生产订单" SheetName="工单上线">
      <Column DisplayName="单号" width="120px" ValueField="Code"></Column>
      <Column Type="DropDownList" DisplayName="状态" width="60px" ValueField='Status' Enum="MOStatusEnum"></Column>
      <Column Type="0" DisplayName="料号" width="180px" ValueField="ItemMaster.Code"></Column>
      <Column Type="TextBox" DisplayName="品名" width="180px" ValueField="ItemMaster.Name"></Column>
      <Column Type="NumberBox" DisplayName="数量" width="60px" ValueField="Qty"></Column>
      <Column Type="NumberBox" DisplayName="上线数量" width="80px" ValueField="OnlineQty"></Column>
      <Column Type="NumberBox" DisplayName="累计完工量" width="80px" ValueField="TotalCompleteQty"></Column>
      <Column Type="TextBox" DisplayName="批号" width="100px" ValueField="LotNumber"></Column>
      <Column Type="TextBox" DisplayName="客户" width="120px" ValueField="Customer"></Column>
      <Column Type="Calendar" DisplayName="计划开工日期" width="140px" ValueField="StartDateTime"></Column>
      <Column Type="Calendar" DisplayName="计划完工日期" width="140px" ValueField="EndDateTime"></Column>
  </DataGrid>
</div>

<div class="row RowSpace" style="margin-top:10px;">
  <div class="LableDiv" style="width:50px;">
    <ModalBox Text="上线" WindowTitle='工单上线' beforeshow="btnOnLine()" cancelclick="onModalHide()" IsDisplayBtn="false">
      <div class="row RowSpace">
        <div class="MOList_LabelLeft">生产批次</div>
        <div class="MOList_LabelRight" title="{{Module.MO.FocusedRecord.LotNumber}}">{{Module.MO.FocusedRecord.LotNumber ? Module.MO.FocusedRecord.LotNumber : "&nbsp;"}}</div>
        <div class="MOList_LabelLeft">单号</div>
        <div class="MOList_LabelRight" title="{{Module.MO.FocusedRecord.Code}}">{{Module.MO.FocusedRecord.Code}}</div>
      </div>
      <div class="row RowSpace">
        <div class="MOList_LabelLeft">客户</div>
        <div class="MOList_LabelRight" title="{{Module.MO.FocusedRecord.Customer}}">{{Module.MO.FocusedRecord.Customer ? Module.MO.FocusedRecord.Customer : "&nbsp;"}}</div>
        <div class="MOList_LabelLeft">物料</div>
        <div class="MOList_LabelRight" title="{{Module.MO.FocusedRecord.ItemMaster.Name}}">{{Module.MO.FocusedRecord.ItemMaster.Name ? Module.MO.FocusedRecord.ItemMaster.Name : "&nbsp;"}}</div>
      </div>
      <div class="row RowSpace">
        <div class="MOList_LabelLeft">可上线数量</div>
        <div class="MOList_LabelRight">{{Module.MO.FocusedRecord.Qty - Module.MO.FocusedRecord.OnlineQty}}</div>
        <div class="MOList_LabelLeft">本次上线数量</div>
        <div class="MOList_LabelRight">{{Module.BarcodeMaster.Records.length}}</div>
      </div>
      <div class="row RowSpace" style="margin-top:20px;margin-bottom:20px;"><Btn class="BtnAdd" style="float:right;" value="打印" ng-click="printBarcode()"></div>
      <div class="row RowSpace">
        <DataGrid id="DataGrid1" module="Module.BarcodeMaster" IsEdit="false" IsFilter="false" IsAutoLoad="false" IsExport="false" height="300px">
            <Column Type="NumberBox" DisplayName="序号" width="80px" ValueField="OrderNum" IsOrder="false"></Column>
            <Column Type="TextBox" DisplayName="芯片" width="300px" ValueField="Barcode" IsOrder="false"></Column>
        </DataGrid>
      </div>
    </ModalBox>
  </div>
</div>
